package lambda;

public class LambdaTest {
    public static void main(String[] args) {
//        userAddable((int a, int b)-> {
//            return a + b;
//        });
        userAddable((a, b) -> a + b);

//        useFlyable((String s) -> {
//            System.out.println(s + " 000");
//        });

        useFlyable(s -> System.out.println(s + " 000"));



    }

    private static void useFlyable(Flyable f) {
        f.fly("CCC");
    }

    private static void userAddable(Addable a) {
        System.out.println(a.add(50, 60));
    }
}
